import request from "@/utils/request";

// 查询补发师预约列表
export function listHairTeacherSubscribe(query) {
  return request({
    url: "/business/hairTeacherSubscribe/list",
    method: "get",
    params: query,
  });
}

// 查询补发师预约详细
export function getHairTeacherSubscribe(id) {
  return request({
    url: "/business/hairTeacherSubscribe/" + id,
    method: "get",
  });
}
// 新增补发师预约
export function addHairTeacherSubscribe(data) {
  return request({
    url: "/business/hairTeacherSubscribe/replaceSubscribe",
    method: "post",
    data: data,
  });
}

// 修改补发师预约
export function updateHairTeacherSubscribe(data) {
  return request({
    url: "/business/hairTeacherSubscribe",
    method: "put",
    data: data,
  });
}

// 删除补发师预约
export function delHairTeacherSubscribe(id) {
  return request({
    url: "/business/hairTeacherSubscribe/" + id,
    method: "delete",
  });
}

// 删除补发师预约
export function teacherAvailableTime(query) {
  return request({
    url: "/business/hairTeacherSubscribe/teacherAvailableTime",
    method: "get",
    params: query,
  });
}
// 获取预约类型
export function teacherSubscribeType(query) {
  console.log(query)
  return request({
    url: "/business/hairTeacherSubscribe/teacherSubscribeType",
    method: "get",
    params: query,
  });
}



